<template>
  <div class="title" :id="id">
    <span class="text">{{ title }}</span>
    <div class="more active" v-if="more" @click="$emit('more')">
      <span>{{ more }}</span>
      <span class="i-carbon-chevron-right icon"></span>
    </div>
  </div>
</template>
<script setup lang="ts">
defineOptions({ name: 'TitleMode' })

defineProps({
  title: {
    type: String,
    default: '',
  },
  more: {
    type: String,
    default: '',
  },
  id: {
    type: String,
    default: '',
  },
})
</script>
<style lang="scss" scoped>
.title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 112rpx;
  padding: 0px 8rpx 0px 23rpx;
  color: var(--color1);
  .text {
    font-size: 30rpx;
    font-weight: 700;
  }
  .more {
    display: flex;
    align-items: center;
    font-size: 26rpx;
    color: var(--color4);
    .icon {
      font-size: 30rpx;
    }
  }
}
</style>
